<style>
    .panel-intro>.panel-heading .nav-tabs>li.actives>a,
    .panel-intro>.panel-heading .nav-tabs>li.actives>a:hover,
    .panel-intro>.panel-heading .nav-tabs>li.actives>a:focus {
        color: #7b8a8b;
        background-color: #ffffff;
        border-bottom-color: transparent;
        cursor: default;
        font-weight: 600;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading()}
        <ul class="nav nav-tabs" data-field="status">
            <li class="pull-right {:$Think.get.type === null ? 'active' : ''}"><a href="#t-all" data-value=""
                    data-toggle="tab">{:__('All')}</a></li>
            {foreach $statusList as $key=>$vo}
            <li class="pull-right {:$Think.get.type === (string)$key ? 'active' : ''}"><a href="#t-{$key}"
                    data-value="{$key}" data-toggle="tab">{$vo}</a></li>
            {/foreach}

            {foreach $mouldList as $key=>$vo}
            <li class="{:$mould_id==$key?'actives':''}"><a href="{:url('web.category/index',['mould_id'=>$key])}"
                    data-value="{$key}" title="{$vo}">{$vo}</a></li>
            {/foreach}
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>
                        <a href="javascript:;"
                            class="btn btn-success btn-add {:$auth->check('web/category/add')?'':'hide'}"
                            title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;"
                            class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('web/category/edit')?'':'hide'}"
                            title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;"
                            class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('web/category/del')?'':'hide'}"
                            title="{:__('Delete')}">
                            <i class="fa fa-trash"></i> {:__('Delete')}
                        </a>

                        <div class="dropdown btn-group {:$auth->check('web/category/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
                                data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                        data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a>
                                </li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                        data-params="status=hidden">
                                        <i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>


                        <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('web/category/recyclebin')?'':'hide'}"
                            data-area='["90%","90%"]' href="web/category/recyclebin" title="{:__('Recycle bin')}"><i
                                class="fa fa-recycle"></i> {:__('Recycle bin')}</a>

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                        data-operate-edit="{:$auth->check('web/category/edit')}"
                        data-operate-del="{:$auth->check('web/category/del')}" width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>